//
//  PPCacheManager.h
//  PPDataBase_Example
//
//  Created by ppss on 2021/6/17.
//  Copyright © 2021 ppss. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface PPCacheManager : NSObject
#pragma mark - 内存+磁盘持久化

//数据是否存在cache中
- (BOOL)containsObjectWithParams:(NSDictionary *)params;
//存储数据
- (void)setCacheWithParams:(NSDictionary *)params;

//获取数据
- (id)getCacheWithParams:(NSDictionary *)params;

//移除数据
- (void)removeCacheWithParams:(NSDictionary *)params;

//移除所有数据
- (void)removeAllCache;

//获取缓存数据大小
- (NSInteger)getAllCacheSize;

#pragma mark - 内存持久化
//存储数据
- (void)setMemoryCacheWithParams:(NSDictionary *)params;

//获取数据
- (id)getMemoryCacheWithParams:(NSDictionary *)params;
@end

NS_ASSUME_NONNULL_END
